package model.beans;

import java.io.Serializable;
import java.text.DecimalFormat;

public class ItemBean implements Serializable{
	
	private static final long serialVersionUID = 4885720660768934633L;
	private String number;
	private String name;
	private double price;
	private int quantity;
	private int onOrder;
	private int reOrder;
	private int catId;
	private int supId;
	private double costPrice;
	private String unit;
	
	
	/**
	 * @return the number
	 */
	public String getNumber() {
		return number;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @return the price
	 */
	public double getPrice() {
		DecimalFormat df = new DecimalFormat("#0.00");
		return Double.valueOf(df.format(price));
	}
	/**
	 * @return the quantity
	 */
	public int getQuantity() {
		return quantity;
	}
	/**
	 * @return the onOrder
	 */
	public int getOnOrder() {
		return onOrder;
	}
	/**
	 * @return the reOrder
	 */
	public int getReOrder() {
		return reOrder;
	}
	/**
	 * @return the catId
	 */
	public int getCatId() {
		return catId;
	}
	/**
	 * @return the supId
	 */
	public int getSupId() {
		return supId;
	}
	/**
	 * @return the costPrice
	 */
	public double getCostPrice() {
		return costPrice;
	}
	/**
	 * @return the unit
	 */
	public String getUnit() {
		return unit;
	}
	
	/**
	 * @param number the number to set
	 */
	
	public void setNumber(String number)
	{
		this.number = number;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name)
	{
		this.name = name;
	}
	/**
	 * @param price the price to set
	 */
	public void setPrice(double price)
	{
		this.price = price;
	}
	/**
	 * @param quantity the quantity to set
	 */
	public void setQuantity(int quantity)
	{
		this.quantity = quantity;
	}
	/**
	 * @param onOrder the onOrder to set
	 */
	public void setOnOrder(int onOrder)
	{
		this.onOrder = onOrder;
	}
	/**
	 * @param reOrder the reOrder to set
	 */
	public void setReOrder(int reOrder)
	{
		this.reOrder = reOrder;
	}
	/**
	 * @param catId the catId to set
	 */
	public void setCatId(int catId)
	{
		this.catId = catId;
	}
	/**
	 * @param supId the supId to set
	 */
	public void setSupId(int supId)
	{
		this.supId = supId;
	}
	/**
	 * @param costPrice the costPrice to set
	 */
	public void setCostPrice(double costPrice)
	{
		this.costPrice = costPrice;
	}
	/**
	 * @param unit the unit to set
	 */
	public void setUnit(String unit)
	{
		this.unit = unit;
	}
	
	
}
